/**
  ******************************************************************************
  * @file    bsp_gps.h
  * @author  Iron
  * @date    2018-07-19
  * @version v1.0
  * @brief   bsp gps header file
  */

#ifndef __BSP_GPS_H
#define __BSP_GPS_H

#ifdef __cplusplus
extern "C" {
#endif

/* includes ------------------------------------------------------------------*/
#include <stdint.h>

/* exported types ------------------------------------------------------------*/
/* exported constants --------------------------------------------------------*/
/* exported macro ------------------------------------------------------------*/
/* exported functions ------------------------------------------------------- */
int32_t bps_gps_reset(void);
void bps_gps_power_on(void);
void bps_gps_power_off(void);

int32_t bsp_gps_init(void);
int32_t gps_uart_send(uint8_t *data, int32_t len, uint32_t timeout);
int32_t gps_uart_getbyte(uint8_t *data, uint32_t timeout);
int32_t gps_uart_recv(uint8_t *data, int32_t size, uint32_t timeout);

/**
  * @}
  */

#ifdef __cplusplus
}
#endif

#endif /* __BSP_GPS_H */

/******************* (C)COPYRIGHT 2018 ***** END OF FILE *********************/
